<template>
  <div class="app-container">
    <!-- {{this.$route.params.courseId}} -->
    <el-form ref="form" :model="form" label-width="120px">
      <el-form-item label="班级号">
        <el-input v-model="form.name" />
      </el-form-item>
      <el-form-item label="课程号">
        <el-input v-model="form.desc" type="textarea" />
      </el-form-item>
      <el-form-item label="课程名">
        <el-input v-model="form.desc" type="textarea" />
      </el-form-item>
      <el-form-item label="任课老师">
        <el-input v-model="form.desc" type="textarea" />
      </el-form-item>
      <el-form-item label="上课时间">
        <el-input v-model="form.desc" type="textarea" />
      </el-form-item>
      <el-form-item label="上课地点">
        <el-input v-model="form.desc" type="textarea" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">确认</el-button>
        <el-button @click="onCancel">取消</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      form: {
        ClassId: '',
        CourseNumber: '',
        CourseName: '',
        Teacher: '',
        ClassTime: '',
        ClassPlace: '',
      }
    }
  },
  methods: {   
    onSubmit() {
      this.$message('submit!')
    },
    onCancel() {
      this.$message({
        message: 'cancel!',
        type: 'warning'
      })
    }
  }
}
</script>

<style scoped>
.line{
  text-align: center;
}
</style>

